package com.aaa.dao;

import com.aaa.pojo.FundType;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface FundType_Mapper {
    //根据基金代码查询
        @Select("select * from fund_type WHERE type_code=#{type_code}")
        FundType selectCode(Integer code);
        @Insert("INSERT into fund_type(type_name,type_code,type_abbreviate)VALUES(#{type_name},#{type_code},#{type_abbreviate})")
        boolean insertFundType(FundType fundType);
}
